package pojo.Homework

object MyClass02 {

  def main(args: Array[String]): Unit = {
    val student2: Student2 = new Student2()
    student2.hello()
  }

  class Student2 {
    var name: String = _
    var age: Int = _
    var address: String = _

    def hello(): Unit = {
      println("name:" + name)
      println("age:" + age)
      println("address:" + address)
    }
  }

}
